package com.tyk.bookstore.back.system.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description UserResultEnum
 */
public enum UserResultEnum implements ResultEnum {

    USER_NOT_FOUND(3_01_01_01, "用户不存在"),
    ACCOUNT_NOT_FOUND(3_01_01_02, "账号不存在"),
    ACCOUNT_ALREADY_EXISTS(3_01_01_03, "账号已存在"),
    ACCOUNT_OR_PASSWORD_ERROR(3_01_01_04, "账号或密码不正确"),
    PHONE_NOT_BOUND(3_01_01_05, "手机号未绑定"),
    PHONE_HAS_BOUND(3_01_01_06, "手机号已绑定"),
    PHONE_OR_PASSWORD_ERROR(3_01_01_07, "手机号或密码不正确"),
    EMAIL_NOT_BOUND(3_01_01_08, "邮箱未绑定"),
    EMAIL_HAS_BOUND(3_01_01_09, "邮箱已注册"),
    EMAIL_OR_PASSWORD_ERROR(3_01_01_10, "邮箱或密码不正确"),
    PASSWORD_ERROR(3_01_01_11, "密码不正确");

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.message;
    }


    UserResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private final Integer code;

    private final String message;

}
